a = input("输入一串字符：")
b = {"数字": 0, "字母": 0, "其他": 0}
for i in a:
    if i.isdigit():
        b["数字"] += 1
    elif i.isalpha():
        b["字母"] += 1
    else:
        b["其他"] += 1

print(b)
